using System;
using System.Collections.Generic;
using System.Text;

namespace NBusiness.Query.SqlServer
{
    public class SqlLiteral : SqlEvaluatable
    {
        private string _literal;
        public string Literal
        {
            get { return _literal; }
            set { _literal = value; }
        }

        public SqlLiteral() { }
        public SqlLiteral(string literal)
        {
            _literal = literal;
        }

        public override string ToSql()
        {
            return ToSql(new SqlQueryContext());
        }

        public override string ToSql(IQueryContext context)
        {
            return _literal;
        }
    }
}
